package com.summer.mapper;

import com.summer.entity.PlatformUser;
import com.summer.vo.PlatformUserVo;

import java.util.List;
import java.util.Map;

public interface PlatformUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PlatformUser record);

    int insertSelective(PlatformUser record);

    PlatformUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PlatformUser record);

    int updateByPrimaryKey(PlatformUser record);

    /**
     * 根据手机号查询用户信息
     * @param phoneNumber
     * @return
     */
    PlatformUser findByPhoneNumber(String phoneNumber);

    /**
     * 查询账户管理列表
     * @param params
     * @return
     */
    List<PlatformUserVo> findParams(Map<String, Object> params);

    /**
     * 删除用户
     * @param params
     */
    void deleteByStatus(Map<String, Object> params);

    /**
     * 修改角色
     * @param params
     */
    void updateByRole(Map<String, Object> params);
}